package com.fanglei.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: dengqi
 * @Date: 2018/8/2 10:58
 * @Description:
 */
@RestController
public class ApiController {

    @RequestMapping("/health")
    public String testAopReq(@RequestParam(value = "param1") String param1){

        return "{'code':'0000','message':'success'}";
    }


    @RequestMapping("/api")
    public String doApi(@RequestParam(value = "param1") String param1){

        return "{'code':'0000','message':'success'}";
    }

}
